(ns src.main.clojure.ringproba
  (:use ring.adapter.jetty)
  (:use ring.middleware.reload)
  (:use ring.middleware.stacktrace))


(defn handler [req]
  {:status  200
   :headers {"Content-Type" "text/html"}
   :body    "Hello World from Ring"})

(def app
  (-> #'handler
    (wrap-reload '(src.main.clojure.ringproba))
    (wrap-stacktrace)))

(defn boot []
  (run-jetty #'app {:port 8080}))



